<?php

namespace fq\request\param;


/**
 * API CODE: query.order
 *
 * @author auto create
 * @since 1.0, 2021.09.09
 */
class QueryOrder
{

	private $trade_id;
	private $apiParas = array();

	public function getApiInterfaceName()
	{
		return "query.order";
	}

	public function getApiMethodName()
	{
		return "POST";
	}

	/**
	 * 订单ID
	 * @param $trade_id
	 */
	public function setTradeId($trade_id)
	{
		$this->trade_id = $trade_id;
		$trade_id && $this->apiParas["tradeid"] = $trade_id;
	}


	public function getApiParas()
	{
		return $this->apiParas;
	}

	public function check()
	{

	}

	public function putOtherTextParam($key, $value)
	{
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
